#include "GameEngine.h"


GameEngine::GameEngine()
{
	quit = false;
	background = 0;
	screen = 0;

	screen = SDL_SetVideoMode(300, 460, 32, SDL_SWSURFACE);

	background = SDL_LoadBMP("background.bmp");

	SDL_Init(SDL_INIT_EVERYTHING);
}


GameEngine::~GameEngine()
{
	SDL_FreeSurface(background);

	SDL_Quit();
}

int GameEngine::Draw()
{
	SDL_BlitSurface(background, 0, screen, 0);

	SDL_Flip(screen);

	return 0;
}

key GameEngine::HandleInput()
{
	return NONE;
}